/************************************************************************

								Heroes IV
					  Copyright 2001, The 3DO Company

	------------------------------------------------------------------
  					       abstract_grail_data_source.cpp

	$Header: $

	$NoKeywords: $

 ************************************************************************/


#include "precompiled.h"
#include "precompiled.h"
#include "abstract_grail_data_source.h"

#include <assert.h>
#include "town_type.h"

// ------------------------------------------------------------------
// player data structure 
// Get the spell power bonus (if any) given by grail buildings to
// spells of this alignment
// ------------------------------------------------------------------
int t_abstract_grail_data_source::get_grail_spell_bonus( t_town_type alignment ) const
{
	assert( alignment >= 0 && alignment < k_magic_town_type_count );

	if ( gets_global_grail_effects( alignment ) )
	{
		static int const k_grail_bonus[] = { 50, 50, 50, 50, 25 };
		return k_grail_bonus[ alignment ];
	}

	return 0;
}
